package com.dzsw.gateway;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.netflix.zuul.filters.ZuulProperties;
import org.springframework.context.annotation.ComponentScan;

@EnableZuulProxy
@EnableSwagger2Doc
@EnableEurekaClient
@SpringBootApplication
@ComponentScan(basePackages = {"com.dzsw.gateway.filter", "com.dzsw.gateway.config"})
public class AppGateway {

    public static void main(String[] args) {
        SpringApplication.run(AppGateway.class, args);
    }

//    @RefreshScope
//    @ConfigurationProperties("zuul")
//    public ZuulProperties zuulProperties(){
//        ZuulProperties properties = new ZuulProperties();
//        System.out.println("properties:"+properties);
//        return properties ;
//    }

}
